import service from "@/utils/request";

export function getPermissionListService(params) {
    return service({
        url: "/permission/list",
        method: "get",
        params,
    });
}

export function deletePermissionService(permissionId) {
    return service({
        url: `/permission/${permissionId}`,
        method: "delete",
    });
}

export function addPermissionService(data) {
    return service({
        url: "/permission/add",
        method: "post",
        data,
    });
}
